package com.briup.day08;

import com.briup.day08.bean.Demo;
import com.briup.day08.bean.School;

import java.util.Scanner;

public class Test_School {
    public static void main(String[] args) {
        School s1=new School("第一中学",3000);
        s1.show();
        System.out.println("---------------------------");
        School s2=new School("娄江中学",2500);
        s2.show();
        System.out.println("---------------------------");
        School s3=new School("秀峰中学",1800);
        s3.show();
        System.out.println(Demo.num);
        //调用静态方法
        String library=School.getLibrary();
        System.out.println(library+"类调用");
        System.out.println(s1.getLibrary()+"对象调用");
        Demo.num=10;
        Demo d1=new Demo();
        System.out.println(d1.num);
        d1.num=20;
        Demo d2=new Demo();
        System.out.println(d2.num);
        System.out.println("----------------------");
        System.out.println(Demo.name);
        System.out.println(Demo.num2);
        System.out.println(Demo.flag);
        System.out.println("----------------------");
        Demo.test();
        d1.test();
    }
}
